import java.util.ArrayList;

//medium
public class Baconator extends Pet {


	public Baconator(String petName, int petXP, int petDamageTaken, int petDef, int petStr, int petSpd, int petSize, ArrayList<AttackName> petAttacks) {
		super(petName, "Gjord utav bacon och i ständigt bulk-mode. Tillagar sig själv för att locka till sig sitt byte.", Type.Fire, petXP, petDamageTaken, petDef, petStr, petSpd, petSize, petAttacks,"/petsPictures/baconatorFront.gif","/petsPictures/baconatorBack.gif");

	}

	public Baconator(String petName, int petExp) {
		super(petName, "Gjord utav bacon och i ständigt bulk-mode. Tillagar sig själv för att locka till sig sitt byte.", Type.Fire, petExp, 9, 11, 10, 175, new Baconator().startingAttacks(petExp), "/petsPictures/baconatorFront.gif","/petsPictures/baconatorBack.gif");
	}
	

	public Baconator(){
		super();
	}
	
	public ArrayList<AttackName> startingAttacks(int exp) {
		int xp = exp;
		ArrayList<AttackName> attacks = new ArrayList<AttackName>();
	
		
		if (xp == -1){
			return attacks;
		}
		
		if(xp<100){
		attacks.add(AttackName.NippleTwist);
		return attacks;
		}
		else if(xp < 200){
		attacks.add(AttackName.NippleTwist);
		attacks.add(AttackName.Eldrustning);
		return attacks;
		}
		else if(xp<400){
			attacks.add(AttackName.NippleTwist);
			attacks.add(AttackName.Eldrustning);
			attacks.add(AttackName.Eldslag);
			return attacks;
		}
		else if(xp<600){
			attacks.add(AttackName.NippleTwist);
			attacks.add(AttackName.Eldrustning);
			attacks.add(AttackName.Eldslag);
			attacks.add(AttackName.Rökridå);
			return attacks;
		}
		else if(xp<800){
			attacks.add(AttackName.NippleTwist);
			attacks.add(AttackName.EldIllussion);
			attacks.add(AttackName.Eldslag);
			attacks.add(AttackName.Rökridå);
			return attacks;
		}
		else{
			attacks.add(AttackName.NippleTwist);
			attacks.add(AttackName.EldIllussion);
			attacks.add(AttackName.Eldslag);
			attacks.add(AttackName.Pungspark);
			return attacks;
		}
	}
		public Baconator(String petName, ArrayList<AttackName> petAttacks) {

		super(petName, "Pls byt beskrivning.", Type.Fire, 0, 0, 83, 83, 47, 490, petAttacks,"petsPictures/baconatorFront.gif","petsPictures/baconatorBack.gif");
	}


	public Pet copy() {
		Baconator duplicate = new Baconator(name, currentXP, /* damageTaken */ 0, defense, strength, speed, size, attacks);
		duplicate.energy = energy;
		return duplicate;
	}
	public Pet copy(int exp) {
		Baconator duplicate = new Baconator(name, exp);
		duplicate.energy = energy;
		return duplicate;
	}

	
}

	



